public class PlayerAirState : PlayerState
{
    public PlayerAirState(Player player, string animBoolName) : base(player, animBoolName)
    {
    }

    public override void Enter()
    {
        base.Enter();
    }

    public override void Exit()
    {
        base.Exit();
    }

    public override void Update()
    {
        base.Update();
        if (player.IsWallDetected())
            StateMachine.ChangeState(player.WallslideState);
        if (player.IsGroundDetected())
            StateMachine.ChangeState(player.IdleState);
        if (xInput != 0)
            player.SetVelocity(player.moveSpeed * 0.8f * xInput, rb.velocity.y);
    }
}
